package design.a1_factory.method;

import design.a1_factory.method.factory.impl.EnglishFactory;
import design.a1_factory.method.factory.impl.MathFactory;

/**
 * 工厂方法模式
 */
public class MethodFactoryTest {

	public static void main(String[] args) {
		EnglishFactory englishFactory = new EnglishFactory();
		englishFactory.create().read();

		new MathFactory().create().read();

	}
}
